import { service } from "./index";

const getDatacount = (data) => {
  return service({
    method: "get",
    url: "/selanvr/slscreen/datacount",
    data,
  });
};

const getUsageRecord = (data) => {
  return service({
    method: "get",
    url: "/selanvr/slscreen/trends?limit=4",
    data,
  });
};

const getFeatureTotal = (data) => {
  return service({
    method: "get",
    url: "/selanvr/slscreen/bottobmcount",
    data,
  });
};

const getWikiranking = (data) => {
  return service({
    method: "get",
    url: "/selanvr/slscreen/wikiranking",
    data,
  });
};

const getResdistriBution = (data) => {
  return service({
    method: "get",
    url: "/selanvr/slscreen/resdistribution",
    data,
  });
};

const getAreaRanking = (data) => {
  return service({
    method: "get",
    url: "/selanvr/slscreen/arearanking",
    data,
  });
};

const getSubjectuse = (data) => {
  return service({
    method: "get",
    url: "/selanvr/slscreen/subjectuse",
    data,
  });
};

const getDailyusage = (data) => {
  return service({
    method: "get",
    url: "/selanvr/slscreen/dailyusage",
    data,
  });
};

export {
  getDatacount,
  getUsageRecord,
  getFeatureTotal,
  getWikiranking,
  getResdistriBution,
  getAreaRanking,
  getSubjectuse,
  getDailyusage,
};
